package cn.cjp.day02;

public class Usephone {

    public static void main(String[] args){

        Phone one = new Phone();
        System.out.println(one.prince);
        System.out.println("=================================");
        one.prince = 2222;
        System.out.println(one.prince);
        System.out.println("=================================");
        one.call("老总");
        System.out.println("=================================");

        //对象地址赋值
        Phone two = one;
        System.out.println(two.prince);
        System.out.println("=================================");

        //作为参数
        method(one);

        //调用基本类型
        one.setGood(true);
        boolean male = one.isGood();
    }

    public static void method(Phone one){
        System.out.println("=================================");
        System.out.println(one.prince);
        System.out.println(one.brand);
    }
}
